#include "algebra3.h"
#include "global.h"

class Physics {

public:
	Physics();
	double collide(double p0[], double p1[], double r);
	void rebound(double p0[], double p1[]);
	void add1(double Z[], int iz, double ax, double X[], int ix, double ay, double Y[], int iy);
	void add1(double Z[], int iz, double X[], int ix, double Y[], int iy);
	void add1(double Z[], int iz, double X[], int ix, double ay, double Y[], int iy);
	double ip(double X[], int ix, double Y[], int iy);
	double len2(double X[], int ix);
	double len(double X[], int ix);
	double len2(double X[], int ix, double Y[], int iy);
	double len(double X[], int ix, double Y[], int iy);
	double sqr(double x);
};